import { getRequest, postRequest } from '@/lib/axios';
import {
    PLEDGEHISTORY, IDENTITY, VOTERECORD, NFTFILES, NFTLIST, NFTLISTEDIT, NFTGIFTRELATION,
    NFTFILESSORT, NFTFILESSYNC, NFTFILESADD, NFTFILESDEL
} from '@/config/api-constant/moby'

// NFT发行列表
export const nftListApi = (param) => {
    return postRequest(NFTLIST, param)
}

// 编辑NFT发行状态
export const editNFTListApi = (param) => {
    return postRequest(NFTLISTEDIT, param)
}

// NFT发行文件
export const nftFilesApi = (param) => {
    return postRequest(NFTFILES, param)
}

// 投票记录
export const voterecordApi = (param) => {
    return postRequest(VOTERECORD, param)
}

// 用户身份
export const identityApi = (param) => {
    return postRequest(IDENTITY, param)
}

//质押历史
export const pledgehistoryApi = (param) => {
    return postRequest(PLEDGEHISTORY, param)
}

//礼物对照记录
export const giftrelationyApi = (param) => {
    return postRequest(NFTGIFTRELATION, param)
}


//礼物排序/上下架
export const filesSortApi = (param) => {
    return postRequest(NFTFILESSORT, param)
}

//同步礼物排序
export const filesSyncApi = (param) => {
    return postRequest(NFTFILESSYNC, param)
}

//添加礼物
export const filesAddApi = (param) => {
    return postRequest(NFTFILESADD, param)
}

//删除礼物
export const filesDelApi = (param) => {
    return postRequest(NFTFILESDEL, param)
}

